package md.frolov.bible;

import java.util.regex.Pattern;

public abstract class Constants {
	public final static String XML_TAG_MODULE = "module";
	public final static String XML_ATTRIBUTE_NAME = "name";
	public final static String XML_ATTRIBUTE_INTERNATIONAL_NAME = "internationalName";
	public final static String XML_ATTRIBUTE_SHORT_NAME = "shortName";
	public final static String XML_ATTRIBUTE_LANGUAGE = "language";
	public final static String XML_ATTRIBUTE_CATEGORY = "category";
	public final static String XML_ATTRIBUTE_ID = "id";
	
	public final static String XML_TAG_BOOK = "book";
	public final static String XML_TAG_SHORTNAME = "shortName";
	
	public final static String XML_CHAPTER_TAG = "chapter";
	
	public final static String XML_VERSE_TAG = "v";
	public final static String XML_ATTRIBUTE_VERSE_LOCAL_ID = "lid";

	public final static String ENCODING = "UTF-8";
	
	private final static String idRegex = "([a-z][a-z0-9_]*\\.[a-z0-9_]+)?\\.?([a-z0-9]{1,5})?\\.?(\\d+[\\d,\\-]*)?";
	private final static String urlRegex = "([a-z][\\.a-z0-9_]*)://"+idRegex;
	public final static Pattern urlPattern = Pattern.compile(urlRegex);
	public final static Pattern idPattern = Pattern.compile(idRegex);
	
	public static final String XML_TAG_REFERENCES_VERSE = "verse";
	public static final String XML_ATTRIBUTES_REFERENCES_ID = "id";
	public static final String XML_TAG_REFERENCES_REFERENCE = "ref";
	public static final String XML_ATTRIBUTES_REFERENCES_AID = "aId";
	public static final String XML_ATTRIBUTES_REFERENCES_ZID = "zId";
	
	public static final String NO_OPEN_EVENT_TRIGGER = "noOpenEvent";
	
	public static final String PREFIX_STRONG = "strong";
}
